package com.baizhi.service.impl;

import com.baizhi.entity.LayuiCompany;
import com.baizhi.entity.TreeNode;
import com.baizhi.mapper.LayuiCompanyMapper;
import com.baizhi.service.LayuiCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhengg
 * @since 2020-07-29
 */
@Service
public class LayuiCompanyServiceImpl extends ServiceImpl<LayuiCompanyMapper, LayuiCompany> implements LayuiCompanyService {

    @Override
    public List<TreeNode> selectAllCompanyAndDept() {
        return baseMapper.selectAllCompanyAndDept();
    }
}
